let http = require('http');
let userAgentParser = require('user-agent-parser');
http.createServer(function(req,res){
  let userAgent = req.headers['user-agent'];
  console.log('userAgent:',userAgent);
  let userAgentObj = userAgentParser(userAgent);
  console.log('userAgentObj:',userAgentObj);
}).listen(8080);
